<%@ page import="com.ktjy.entity.UserAco" %>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
        <html>

        <head>
            <title>添加图书信息</title>
            <style>
                body {
                    font-family: "Microsoft YaHei", sans-serif;
                    background-color: #f5f5f5;
                }

                .container {
                    width: 500px;
                    margin: 50px auto;
                    padding: 20px;
                    background-color: white;
                    border-radius: 8px;
                    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                }

                h1 {
                    color: #333;
                    margin-bottom: 30px;
                }

                .form-group {
                    margin-bottom: 20px;
                }

                label {
                    display: inline-block;
                    width: 100px;
                    text-align: right;
                    margin-right: 15px;
                }

                input[type="text"],
                input[type="date"],
                select {
                    width: 250px;
                    padding: 8px;
                    border: 1px solid #ddd;
                    border-radius: 4px;
                    font-size: 14px;
                }

                select {
                    width: 268px;
                }

                .btn-submit {
                    background-color: #4CAF50;
                    color: white;
                    padding: 10px 20px;
                    border: none;
                    border-radius: 4px;
                    cursor: pointer;
                    font-size: 16px;
                    margin-top: 20px;
                }

                .btn-submit:hover {
                    background-color: #45a049;
                }
            </style>
        </head>

        <body>
            <% UserAco user=(UserAco) session.getAttribute("user"); if(user==null){ response.sendRedirect("index.jsp");
                } %>
                <div class="container">
                    <h1>新增图书信息</h1>
                    <form action="insert" method="get">
                        <div class="form-group">
                            <label for="bName">图书名称：</label>
                            <input type="text" id="bName" name="bName" required>
                        </div>
                        <div class="form-group">
                            <label for="bAuthor">图书作者：</label>
                            <input type="text" id="bAuthor" name="bAuthor" required>
                        </div>
                        <div class="form-group">
                            <label for="bTime">购买日期：</label>
                            <input type="date" id="bTime" name="bTime" required>
                        </div>
                        <div class="form-group">
                            <label for="bType">图书类别：</label>
                            <select id="bType" name="bType">
                                <option selected value="0">计算机/软件</option>
                                <option value="1">小说/文摘</option>
                                <option value="2">杂项</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <input type="submit" value="增加图书" class="btn-submit">
                        </div>
                    </form>
                </div>
        </body>

        </html>